<p>myc04-ngif works!</p>

<div *ngIf="age >= 18 else forChildren">
  成人内容
</div>

<ng-template #forChildren>
  儿童内容
</ng-template>

<div>
  <button (click)="jianshao()">-</button>
  <span>{{age}}</span>
  <button (click)="zengjia()">+</button>
</div>


<div>
  <span (click)="qiehuan()" *ngIf="hasMore else show">显示更多</span>
</div>

<ng-template #show>
  <p>没有更多了</p>
</ng-template>
